import base from '../base.js'  //导入接口域名列表
import axios from '../http.js'; //导入http中创建的axios实例

const family = {
	familyList(params){  //全部家庭列表
		return axios.post(`${base.entry}/api/v1/family/agentAllFamilies`,params)
	},
	addFamily(params){  //新增家庭
		return axios.post(`${base.entry}/api/v1/family/saveFamily`,params)
	},
	memberList(params){  //家庭成员列表
		return axios.post(`${base.entry}/api/v1/family/members`,params)
	},
	editMember(params){  //新增/移出家庭成员
		return axios.post(`${base.entry}/api/v1/family`,params)
	},
	memberInfo(params){  //修改成员资料
		return axios.post(`${base.entry}/api/v1/family/updateMembers`,params)
	},
	familyRole(params){  //家庭角色
		return axios.get(`${base.entry}/api/v1/family/getCustomerRole`,params)
	},
  deleteFamily(params){  //删除家庭
    return axios.post(`${base.entry}/api/v1/family/validFamily`,params)
	},
	queryFamilyDetails(params){  //家庭详情
		return axios.post(`${base.entry}/api/v1/family/queryFamilyDetails`,params)
	},
	validTrust(params){ //解除托管
		return axios.post(`${base.entry}/api/v1/family/validTrust`,params)
	}
}

export default family